#!/user/bin/python
# -*- coding:utf-8 -*-

import unittest
import json
import time

class MyTestCase(unittest.TestCase):
    # def test_something(self):
    #     self.assertEqual(True, True)
    # def setUp(self):
    #     "所有执行前运行"
    # def tearDown(self):
    #     "每个用例执行完成后调用"
    """
    @Author :zhangyan
    @time   :2019/6/2014:56
    @returm :
    """
    '''新的分支'''

    def test_lianxi(self):
        print(int("001"))
        print("10的十六机制表示" + str(hex(11)))

    def test_lainxi2(self):
        mac_add = "20:82:C0:66:77:{:0>2X}".format(10000)
        print(mac_add)
    def test_lianxixi3(self):
        saleStatus = 1
        WorkPattern = 2
        print((saleStatus==1)==1)
    def test_toint(self):
        a = 10
        b = 10
        print(a is b)
    def test_json(self):
        with open("./aaaa.json",encoding="utf-8") as af:
            af_dicft = json.load(af)
            print(str(af_dicft)+"类型"+type(af_dicft))
    def test_maopao(self):
        tump1 = [12,3,6,7,2,14,11]
        print(len(tump1))
        tumpl_len = len(tump1)
        for x in range(1,tumpl_len+1):
            for j in range(0,tumpl_len-x):
                if tump1[j] > tump1[j+1]:
                    tump1[j],tump1[j+1] = tump1[j+1],tump1[j]
        print(tump1)

        # for x in tump1:
        #     print(x)
    def test_bianli(self):
        # my_dict = {"name":"yy","age":"12","sex":"nan"}
        # for key in my_dict:
        #     print(key,":",my_dict.get(key))
        sum = 0
        for x in range(101):
            sum += x
        print(sum)
    def test_11(self):
        '''
         print("aaaaabbb")
        '''

if __name__ == '__main__':
    unittest.main()
